#ifndef TBL_USER_DAO_H
#define TBL_USER_DAO_H

#include <QObject>
#include <QSqlDatabase>

class tbl_user_dao : public QObject
{
    Q_OBJECT
public:
    explicit tbl_user_dao(QSqlDatabase& db, QObject *parent = nullptr);

    bool createTable();
    bool select(QString& usename, QString& passwd, QString& msg);
    bool insert(QString& username,QString& passwd, QString& nickname, QString& msg);

signals:

private:
    QSqlDatabase& db;

};

#endif // TBL_USER_DAO_H
